package com.h2.gwt.util.analytics;


public class Analytics {
   
   public static enum Scope {
      PAGE,
      SESSION,
      VISITOR,
   }
   
   public static native void sendEvent(String category, String action,
         String label, Integer value) /*-{
      $wnd._gaq.push(['_trackEvent', category, action, label, value]);
   }-*/;
   
   public static native void sendPageEvent(String page) /*-{
      $wnd._gaq.push(['_trackPageview', page]);
   }-*/;
   
   public static native void sendCustomVariable(String page, Integer slot,
         String name, String value, Integer scope) /*-{
      $wnd._gaq.push(['_setCustomVar', slot, name, value, scope]);
   }-*/;

}
